package com.hbnu.system.controller;

import com.hbnu.system.core.base.Rest;
import com.hbnu.system.model.vo.NameId;
import com.hbnu.system.service.IPatentTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/patenttype")
@Api(tags = "专利类型数据模块")
public class PatentTypeController {
    @Autowired
    private IPatentTypeService iPatentTypeService;


    @ApiOperation("专利类型数据级联数据格式")
    @GetMapping("/getCascadingData")
    public Rest<List<NameId>> getCascadingData(){
        List<NameId> cascadingData = iPatentTypeService.getCascadingData();
        return Rest.success(cascadingData);
    }
}
